using System;

namespace TextMenus
{
	public class MenuOption
	{
		//private int id;
		private string description;
		private Action<MenuInputInfo> callback;

		public MenuOption (string _description, Action<MenuInputInfo> _callback)
		{
			//id = _id;
			description = _description;
			callback = _callback;
		}

		/*
		/// <summary>
		/// Gets the ID
		/// </summary>
		/// <value>
		/// The ID
		/// </value>
		public int ID {
			get { return id; }
		}
		*/

		/// <summary>
		/// Gets the description.
		/// </summary>
		/// <value>
		/// The description.
		/// </value>
		public string Description {
			get { return description; }
		}

		public void Invoke(MenuInputInfo info)
		{
			callback.Invoke(info);
		}
	}
}

